package com.yl.project.lvyou.records.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yl.framework.aspectj.lang.annotation.Excel;
import javax.persistence.*;
import com.yl.framework.web.domain.BaseEntity;

/**
 * 用户咨询记录对象 user_consult_records
 * 
 * @author yl
 * @date 2025-03-16
 */
@Table(name="user_consult_records")
public class UserConsultRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /** 用户ID/设备ID */
    @Excel(name = "用户ID/设备ID")

    @Column(name = "user_id")
    private Long userId;
    /** 景区ID */
    @Excel(name = "景区ID")

    @Column(name = "scenic_id")
    private Long scenicId;
    /** 用户问题 */
    @Excel(name = "用户问题")

    @Column(name = "question")
    private String question;
    /** 系统回答 */
    @Excel(name = "系统回答")

    @Column(name = "answer")
    private String answer;
    /** 匹配到的问答ID */
    @Excel(name = "匹配到的问答ID")

    @Column(name = "qa_id")
    private Long qaId;
    /** 是否匹配成功：0-未匹配，1-已匹配 */
    @Excel(name = "是否匹配成功：0-未匹配，1-已匹配")

    @Column(name = "scenic_name")
    private String scenicName;

    @Column(name = "is_matched")
    private Integer isMatched;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setScenicId(Long scenicId) 
    {
        this.scenicId = scenicId;
    }

    public Long getScenicId() 
    {
        return scenicId;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setQaId(Long qaId) 
    {
        this.qaId = qaId;
    }

    public Long getQaId() 
    {
        return qaId;
    }
    public void setIsMatched(Integer isMatched) 
    {
        this.isMatched = isMatched;
    }

    public Integer getIsMatched() 
    {
        return isMatched;
    }

    public String getScenicName() {
        return scenicName;
    }

    public void setScenicName(String scenicName) {
        this.scenicName = scenicName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("scenicId", getScenicId())
            .append("question", getQuestion())
            .append("answer", getAnswer())
            .append("qaId", getQaId())
            .append("isMatched", getIsMatched())
            .append("createTime", getCreateTime())
            .toString();
    }
}
